package top.huxy.boot.service;

import top.huxy.boot.model.dto.DTOSchedule;
import top.huxy.boot.model.entity.Admin;
import top.huxy.boot.model.entity.ScheduleJob;

import java.util.List;

public interface ScheduleService {
    void addSchedule(DTOSchedule schedule, Admin admin);

    List<ScheduleJob> getAllEnableScheduleJob();

    void stopSchedule(Integer scheduleId, Admin admin);

    List<ScheduleJob> getScheduleList();

    void enableSchedule(Integer scheduleId, Admin admin);



    int getScheduleLogCount();

    void runOnce(Integer scheduleId);
}
